package com.citywy.controller;

import com.citywy.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@Controller
@RequestMapping("/param")
public class ParamController {

    @RequestMapping("param01")
    public String param1(String name,Integer password){
        System.out.println(name+"--"+password);
        return "pages/success";
    }

    @RequestMapping("param02")
    public String param2(User user){
        System.out.println(user);
        return "pages/success";
    }

    @RequestMapping("param03")
    public String param3(User user){
        System.out.println(user);
        return "pages/success";
    }

    @RequestMapping("param04")
    public String param4(Date date){
        System.out.println(date.toString());
        return "pages/success";
    }
}
